package com.yvon.service.demo.design;

/**
 * @author : Yvon
 * @since : 2022-08-17
 */
public class LRUCacheTest{
    public static void main(String[] args) {
        LRUCache<String, String> lru = new LRUCache<>(5);
        lru.put("a", "a");
        lru.put("b", "b");
        lru.put("c", "c");
        lru.put("d", "d");
        lru.put("e", "e");


        System.out.println(lru.get("a") + "");
        lru.put("f", "f");
        System.out.println(lru.get("b") + "");
        System.out.println(lru.get("a") + "");
    }
}
